package com.xk.demo.user.service;

import com.xk.demo.login.entity.MenuLevelEntity;
import com.xk.demo.mybatis.entity.PtUserEntity;
import com.xk.demo.mybatis.flexigrid.PadingRstType;
import com.xk.demo.mybatis.flexigrid.PagingBean;
import com.xk.demo.mybatis.ztree.ZtreeEntity;
import com.xk.demo.user.entity.UserSearchEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserService {

    PtUserEntity queryUserInfoByUserName(String username);



    PadingRstType<PtUserEntity> getUserInfolistByPage(UserSearchEntity search, PagingBean paging);

    void deleteUserById(String userUuid);

    List<ZtreeEntity> getRoleZtreeListByUserId(String userUuid);

    void saveRoleByUserId(String userUuid, String roleUuids);

    public List<String> queryMenuInfoList(String userUuid);

    List<MenuLevelEntity> queryMenuInfoByUserLang(String toString);
    void addUser(PtUserEntity user);

    void updateUserByUserId(PtUserEntity user);

}
